<!DOCTYPE html>
<html>
<head>
    <title>{$site_info.site_name|default=''}</title>
    <include file="public@head"/>
    <include file="student/public@head"/>
    <link href="__STATIC__/student/css/lessionlist.css" rel="stylesheet" type="text/css">
</head>
<body>
    <include file="student/public@header"/>
    <include file="student/public@grade"/>
    <include file="student/public@login"/>


    <div class="less_top" <if condition ="$keywords neq ''">style="display:none;"</if>>
        <div class="middle">
            <div class="ul" style="position: relative;top: 20px;margin-top: 0;">
                <div class="left">学段</div>
                <div id="xd" class="right">
                    <volist name="$xdlist" id="item">
                        <div class="li <if condition='$key eq 0'>active</if>" data-id="{$item.id}">{$item.name}</div>
                    </volist>
                </div>
            </div>
            <div class="ul" style="margin-top: 30px;">
                <div class="left">年级</div>
                <div id="nj" class="right">
                    <volist name="$njlist" id="item">
                        <div class="li <if condition='$key eq 0'>active</if>" data-id="{$item.id}">{$item.name}</div>
                    </volist>
                
                </div>
            </div>

            <div class="ul">
                <div class="left">类别</div>
                <div id="lb" class="right">
                    <div class="li active zhibo-info" data-id="3">直播</div>
                    <div class="li neirong-info" data-id="4">内容</div>
                </div>
            </div>
        </div>
    </div>


    <div class="less_list_less_info less_list" <if condition ="$keywords neq ''">style="margin-top:80px;"</if>>
        <ul>
            <volist name="$lesslist" id="item">
                <li>
                    <a href="/student/detail/class?id={$item.id}">
                        <div class="content">
                            <div class="top" style="background: url({$item.thumb}) no-repeat;background-size: cover;">
                                <div class="tip">课程</div>
                            </div>
                            <div class="title">{$item.name}</div>
                            <div class="information">
                                <text class="text1">{$item.lesson}</text>
                                <if condition="$item.ismaterial eq 1">
                                    <img src="__STATIC__/student/images/index/book.png"><text class="text2">含教材</text>
                                </if>
                                
                            </div>
                            <div class="bottom">
                                <img class="img1" src="{$item.avatar}">
                                <text class="name">{$item.user_nickname}</text>
                                <if condition="$item.paytype eq 0">
                                    <text class="mian">免费</text>
                                </if>
                                <if condition="$item.paytype eq 1">
                                    <text class="money">￥{$item.payval}</text>
                                </if>
                                <if condition="$item.paytype eq 2">
                                    <text class="mi">密码</text>
                                </if>                               
                            </div>
                        </div>
                    </a>
                </li>
            </volist>
        </ul>

    </div>
    
    <include file="student/public@footer"/>
    <include file="student/public@scripts"/>
    <script>
        var xdid = "{$xdid}"; //学段id
        var njid = "{$njid}"; //年级id
        var kmid = '0'; //科目id
        var lbid = '1'; //类别id
        var page = 1; //页码
    </script>
    <script src="__STATIC__/student/js/lessionlist.js"></script>
</body>
</html>
